<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="span12">
	<h2>行业下股票列表</h2>
	<hr>
	<form class="form-serach" action='<c:url value="/industry-manage/${id }/stocklist/" />' method="get">
		<input type="text" class="input-medium search-query"
			placeholder="输入股票名或股票代码" name="n">
		<button type="submit" class="bnt">查询</button>
	</form>
	<a href='<c:url value="/industry-manage/${id }/stocklist/add" />'>新增股票</a>
	<hr>
	<table class="table table-bordered table-hover">
		<thead>
			<tr>
				<th>No.</th>
				<th>股票名</th>
				<th>股票代码</th>
				<th>交易所</th>
				<th>大盘股</th>
				<th>300股票</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="o" items="${result.listResult }" varStatus="s">
				<tr>
					<td><c:out value="${s.index + (result.pageNo - 1) * 20 + 1}" /></td>
					<td><c:out value="${o.stockName }" /></td>
					<td><c:out value="${o.stockId }" /></td>
					<td><c:out value="${o.market }" /></td>
					<td>
						<c:if test="${o.dapanStock }">Y</c:if>
						<c:if test="${!o.dapanStock }">N</c:if>
					</td>
					<td>
						<c:if test="${o.threeHundredStock }">Y</c:if>
						<c:if test="${!o.threeHundredStock }">N</c:if>
					</td>
					<td>
						<a id="deleteA" href='<c:url value="/industry-manage/${id }/stocklist/delete?sid=${o.id }" />' onclick="return confirm('确认删除?');">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>

	<div class="pagination">
		<ul>
			<c:forEach var="p" items="${ result.paginateList}" >
				<c:if test="${p == result.pageNo }">
					<li class="active"><span>${p }</span></li>
				</c:if>
				<c:if test="${p != result.pageNo }">
					<li><a href='<c:url value="/industry-manage/${id }/stocklist/?p=${p }" />'><span>${p }</span></a></li>
				</c:if>
			
			</c:forEach>
		</ul>
	</div>

</div>

<script type="text/javascript">
	
</script>


